package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.entity.Goods
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface GoodsMapper {

    fun getById(id: Long): Goods

    fun insert(record: Goods);

    fun queryForList(): List<Goods>?

    fun getByName(@Param("goodsName") goodsName: String?): Goods?

    fun update(newGoods: Goods)

    fun getByControlNo(@Param("controlNo") controlNo: String?): Goods?

    fun queryByIdList(@Param("idList") idList: List<Long?>): List<Goods>

    fun delete(@Param("id") id: Long?, @Param("editor") editor: Long?)

    fun queryAllGoods(): List<Goods>

}